﻿function ChannelKick(step,instrument){
	var me=this;
	
	me.instrument=instrument;
	me.step=step;
	return me;
}
function ChannelNote(step,pitch,length,shift){
	var me=this;
	me.pitch=pitch;
	me.glissando=pitch+shift;
	me.length=length;
	me.step=step;
	return me;
}
function RiffChannel(instrument){
	var me=this;
	me.instrument=instrument; 
	me.notes=[];
	me.kicks=[];
	return me;
}

function SongSlot(){
	var me=this;
	me.step=0;
	me.x=0;
	me.y=0;
	me.channels=[];
	
	return me;
}
function SongInstrument(){
	var me=this;
	return me;
}
function SongDrum(){
	var me=this;
	return me;
}
function TritonSong(){
	var me=this;
	me.id=generateRandomId();
	me.slots=[];
	me.instruments=[];
	me.drums=[];
	me.tempo=120;
	me.meter=64;
	me.title="?";
	me.meterMode=0;//=4/4 or 1=3/4
	return me;
}
function startPlay(){
	//
}
function stopPlay(){
	//
}